<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    {$LOAD_STYLE.top|raw}
</head>
<body>
<form class="layui-form" action="">
    <div class="mainBox">
        <div class="main-container">
            
			<div class="layui-form-item">
				<label class="layui-form-label">品种名称</label>
				<div class="layui-input-block">
				  <input type="text" name="name" value="{$model.name??''}" placeholder="请输入品种名称" class="layui-input"  verify="must">
				</div>
			</div>

			<div class="layui-form-item layui-img-upload">
				<label class="layui-form-label">品种封面图片</label>
				<div class="layui-input-block">
					{:opt_photo("cover")}
					<button class="pear-btn pear-btn-primary pear-btn-sm upload-image" type="button">
						<i class="icon pear-icon pear-icon-picture">
						</i>
						上传图片
					</button>
					<input name="cover" type="hidden" class="layui-input" value="{$model.cover??''}">
					<div class="upload-image">
						<span>
						</span>
						<img class="upload-image" src="{$model.cover??''}">
					</div>
				</div>
			</div>

			<div class="layui-form-item layui-img-upload">
				<label class="layui-form-label">品种背面图片</label>
				<div class="layui-input-block">
					{:opt_photo("back")}
					<button class="pear-btn pear-btn-primary pear-btn-sm upload-image" type="button">
						<i class="icon pear-icon pear-icon-picture">
						</i>
						上传图片
					</button>
					<input name="back" type="hidden" class="layui-input" value="{$model.back??''}">
					<div class="upload-image">
						<span>
						</span>
						<img class="upload-image" src="{$model.back??''}">
					</div>
				</div>
			</div>

        </div>
    </div>
    <div class="bottom">
        <div class="button-container">
            <button type="button" class="pear-btn pear-btn-primary pear-btn-sm" lay-submit="" lay-filter="save" verify="submit">
                <i class="layui-icon layui-icon-ok"></i>
                提交
            </button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">
                <i class="layui-icon layui-icon-refresh"></i>
                重置
            </button>
        </div>
    </div>
</form>
<script>
    layui.use(['form', 'jquery', 'uploads','common','mycomm'], function () {
        let form = layui.form;
        let $ = layui.jquery;
		let common = layui.common;
		let mycomm = layui.mycomm;
        
		mycomm.editSubmit();
    })
</script>
{$LOAD_STYLE.bottom|raw}

</body>
</html>